package tsing.javase.thread.sync.service;

import cn.hutool.core.date.DatePattern;
import cn.hutool.core.date.DateUtil;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * @Date 2023/10/25 16:49
 */
@Component
public class SyncDemoService {

    @Async
    public void prints(){
        System.out.println("currenttime："+ DateUtil.format(new Date(), DatePattern.NORM_DATETIME_PATTERN));
    }


    public static void main(String[] args) {

        String s = "1";

        if(s.contains(null)){
            System.out.println(false);
        }else{
            System.out.println(true);
        }

    }

}
